package xcmg.device.service.vo.threeParty;

import lombok.Data;
import xcmg.device.infra.ErrorCode;
@Data
public class BaiduTranslateResultDO {

    private ErrorCode errorCode;

    private String translateResult;

    public BaiduTranslateResultDO successResult(String translateResult){
        this.translateResult = translateResult;
        this.errorCode = ErrorCode.Success;
        return this;
    }

    public BaiduTranslateResultDO errorResult(ErrorCode errorCode){
        this.errorCode = errorCode;
        return this;
    }
}
